<?php
    $cerez=@$_COOKIE["kullanici"];
    if($cerez==""){
?>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Giriş</title>

        <link rel="stylesheet" href="stylesheets/loginform.css" type="text/css" media="screen" title="default" />
        <script src="scripts/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>
        <script src="scripts/jquery/custom_jquery.js" type="text/javascript"></script>
        <script src="scripts/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(document).ready(function(){
                $(document).pngFix( );
            });
        </script>
    </head>

    <body id="login-bg">
        <div id="login-holder">
            <div id="logo-login">
            </div>
            <div class="clear"></div>
            
            <form method="post" action="yetki.php">
                <div id="loginbox">
                    <div id="login-inner">
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <th>Kullanıcı Adı</th>
                                <td><input type="text" name="kullanici" class="login-inp" /></td>
                            </tr>
                            <tr>
                                <th>Şifre</th>
                                <td><input type="password" name="sifre" onfocus="this.value=''" class="login-inp" /></td>
                            </tr>
                            <!--Alttaki bos satır submit butonunun biraz daha asagiya kaydirmak icin kullanilir.-->
                            <tr><th><th></tr><tr><th><th></tr>
                            <tr>
                                <th></th>
                                <td><p><button name="Submit" class="buton" type="submit">GİRİŞ YAP</button></p></td>
                            </tr>
                        </table>
                    </div>
                    <div class="clear"></div>
                    <a href="" class="forgot-pwd">Şifrenizimi Unuttunuz?</a>
                    
                </div>
                
            
            </form>
            
            <div id="forgotbox">
                <div id="forgotbox-text">Şifrenizin gönderilmesini istediğiniz mail adresini giriniz</div>
                <div id="forgot-inner">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <th>E-Mail Adresiniz:</th>
                            <td><input type="text" class="login-inp" /></td>
                        </tr>
                        <!--Alttaki bos satır submit butonunun biraz daha asagiya kaydirmak icin kullanilir.-->
                        <tr><th><th></tr><tr><th><th></tr>
                        <tr>
                            <th></th>
                            <td><p><button class="buton" type="submit">Gönder</button></p></td>
                        </tr>
                    </table>
                </div>
                <div class="clear"></div>
                <a href="" class="back-login">Geri Dön</a>
            </div>
        </div>
    </body>
</html>

<?php
    }
    else{
        header("refresh:0 ; url=admin/adminpanel.php");
    }
?>